package com.nami.logic.forward;

import com.nami.basic.bo.servicetrans.up.UpMsgWrap;
import com.nami.basic.packet.message.Message;
import com.nami.store.api.bo.UserWrap;
import com.nami.store.api.response.groupmember.GroupMemberDTO;

import java.util.List;

/**
 * 最后抽出去 为下发服务
 */
public interface TransDownMsgHandler {

    /**
     * send myself clients and send other clients
     */
    void dispatchMsg(UpMsgWrap wrap,
                     List<GroupMemberDTO> allMembers,
                     UserWrap sender, UserWrap receiver, Message message) throws Exception;


}
